    //
//  ChooseObjectDBViewController.h
//  telefonista
//
//  Created by Vinícius Daly Felizardo on 06/11/13.
//  Copyright (c) 2013 Vinícius Daly Felizardo. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <CoreData/CoreData.h>

@class ChooseObjectDBViewController;

@protocol ChooseObjectDBViewControllerDelegate <NSObject>

- (void)chooseObjectDBVC:(ChooseObjectDBViewController*)controller
           configureCell:(UITableViewCell *)cell
             atIndexPath:(NSIndexPath *)indexPath;

-  (void)chooseObjectDBVC:(ChooseObjectDBViewController*)controller
                tableView:(UITableView *)tableView
  didSelectRowAtIndexPath:(NSIndexPath *)indexPath;


-  (NSIndexPath*)defaultRowForChooseObjectDBVC:(ChooseObjectDBViewController*)controller;
@end

@interface ChooseObjectDBViewController : UITableViewController <NSFetchedResultsControllerDelegate>

@property (strong, nonatomic) NSFetchedResultsController* fetchedResultsController;
@property (strong, nonatomic) NSFetchRequest* fetchRequest;
@property (strong, nonatomic) id <ChooseObjectDBViewControllerDelegate> delegate;

@end
